#ifndef _LCD_H_
#define _LCD_H_

#include "basicdef.h"

#define LCD_MENUITEM_HEIGHT		(16)
#define EDITOR_MAX_LEN  		(8)
#define INDICATE_AREAS_WIDTH	(8)
#define CHECKBOX_WIDTH			(8)
#define UNIT_AREAS_WIDTH		(16)
#define MENU_NAME_LEN			(21)

#define LCD_PIXEL_WIDTH			192
#define LCD_PIXEL_HEIGHT		64
#define LCD_MAX_CMD_SIZE		1240

#define LCD_SUBMODULE_COUNT		2
#define LCD_PAGE_NUM			(LCD_PIXEL_HEIGHT / 8)
#define LCD_MODULE_WIDTH		(LCD_PIXEL_WIDTH / LCD_SUBMODULE_COUNT)

void LCD_HardwareInit(void);
void LCD_ClrScreen(void);

BOOL LCD_FillRect(uint16_t x, uint16_t y, uint16_t width, uint16_t height, BOOL isBlack);
BOOL LCD_RectCtrl(uint16_t x, uint16_t y, uint16_t width, uint16_t height, uint8_t op);
BOOL LCD_DrawPic(uint16_t x, uint16_t y, uint16_t width, uint16_t height, const uint8_t * data);
BOOL LCD_DrawText(uint16_t x, uint16_t y, const char * text);

void LCD_SendCmdToDev(void);

#endif // _LCD_H_
